// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
import type { LessonListData, LessonListParams } from './data.d';

/** 获取 Lesson 列表 GET /api/lesson/list */
export async function getLessonList(
  params: LessonListParams,
  options?: { [key: string]: any },
) {
  return request<LessonListData>('/api/lesson/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

